package com.zj.common.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.zj.common.entity.User;
import com.zj.common.service.UserService;
import com.zj.common.util.ResponseUtil;

@Controller
@RequestMapping("/userController")
public class UserController {
@Autowired
private UserService userService;
@RequestMapping(params="test")
@ResponseBody
public JSONObject test() {
	 List<User>list=userService.getSALLUser();
	 JSONObject j=ResponseUtil.getMap(ResponseUtil.TRUE_CODE, "", list);
	return j;
}




}
